//
//  LBRMViewController.m
//  LBReact
//
//  Created by WuShiHai on 19/5/24.
//  Copyright (c) 2019 Lebbay. All rights reserved.
//

#import "LBRMViewController.h"
#import "LBRPageEventEmitterModule.h"
#import <LBUIKit/FDFullscreenPopGesture.h>
#import <LBRouter/LBRouter.h>

@interface LBRMViewController ()

@end

@implementation LBRMViewController

- (void)dealloc {
    [LBRPageEventEmitterModule sendDeallocEvent:self.moduleId];
    [[NSNotificationCenter defaultCenter] removeObserver:self];
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.fd_prefersNavigationBarHidden = YES;
}

- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
    [LBRPageEventEmitterModule sendViewWillAppearEvent:self.moduleId];
}

- (void)viewWillDisappear:(BOOL)animated {
    [super viewWillDisappear:animated];
    [LBRPageEventEmitterModule sendViewWillDisappearEvent:self.moduleId];
}

@end
